package com.example.contact.model

import com.example.featuresdk.R
import java.util.*

data class Contact (val key:String, val name:String, val icon:Int){

    companion object{
        val contacts : MutableList<Contact> = mutableListOf()

        private  val contactIcons: MutableMap<String,Int> = mutableMapOf()

        init {
            contactIcons["apache"] = R.drawable.ic_apache
            contactIcons["azure"] = R.drawable.ic_azure
            contactIcons["bigquery"] = R.drawable.ic_bigquery
            contactIcons["cassandra"] = R.drawable.ic_cassandra
            contactIcons["clickhouse"] = R.drawable.ic_clickhouse
            contactIcons["cockroachdb"] = R.drawable.ic_cockroachdb
            contactIcons["couchbase"] = R.drawable.ic_couchbase
            contactIcons["eclipse"] = R.drawable.ic_eclipse
            contactIcons["exasol"] = R.drawable.ic_exasol
            contactIcons["firebird"] = R.drawable.ic_firebird
            contactIcons["greenplum"] = R.drawable.ic_greenplum
            contactIcons["hana"] = R.drawable.ic_hana
            contactIcons["hibernate"] = R.drawable.ic_hibernate
            contactIcons["hive"] = R.drawable.ic_hive
            contactIcons["hsqldb"] = R.drawable.ic_hsqldb
            contactIcons["informix"] = R.drawable.ic_informix
            contactIcons["mariadb"] = R.drawable.ic_mariadb
            contactIcons["microsoft"] = R.drawable.ic_microsoft
            contactIcons["mongodb"] = R.drawable.ic_mongodb
            contactIcons["mysql"] = R.drawable.ic_mysql
            contactIcons["postgresql"] = R.drawable.ic_postgresql
            contactIcons["redshift"] = R.drawable.ic_redshift
            contactIcons["snowflake"] = R.drawable.ic_snowflake
            contactIcons["spark"] = R.drawable.ic_spark
            contactIcons["sqlite"] = R.drawable.ic_sqlite
            contactIcons["teradata"] = R.drawable.ic_teradata
            contactIcons["vertica"] = R.drawable.ic_vertica

            contactIcons.forEach { it ->
                contacts.add(Contact(it.key,it.key.capitalize(Locale.US),it.value))
            }
        }
    }
}